package com.test.application.designPatterns.singleton.demo3;

/**
 * 描述: 懒汉式
 * 作者: yanruizhi
 * 时间: 2024/9/18 16:58
 */
public class LazyMan {
    public LazyMan() {
    }
    private static LazyMan lazyMan;
    public static LazyMan getInstance() {
        if (lazyMan == null) {
            lazyMan = new LazyMan();
        }
        return lazyMan;
    }
}
